﻿using MDAControlsFramework;
using MDAControlsFramework.Helpers;
using System;

namespace MDACalendar.CalendarControls {
	class ControlMonthDay: MDALabel {
		DateTime _date;
		public void ShowDay(object sender, MDAMouseEventArgs e) {
			MDAControl parent = this.Parent;
			ControlMonth control = null;
			while (parent != null) {
				control = parent as ControlMonth;
				if (control != null) {
					control.ShowDay(_date);
					break;
				}
				parent = parent.Parent;
			}
		}

	}
}
